package src.itheima02;

import java.util.HashMap;
import java.util.Map;

public class A {
    public static void main(String[] args) {
        Map<String,String> map=new HashMap();
        map.put("1","2");
        map.put("2","3");
        map.put("3","wke");
        System.out.println(map);
        String value=map.put("2","ttt");
        System.out.println(value);
        String v=map.remove("2");
        System.out.println(v);

        String t=map.get("3");
        System.out.println(t);

        System.out.println(map.containsKey("2222"));
        System.out.println(map.containsValue("wke"));
    }
}
